package com.yqy.spring.T1.Factory;

public class Client {
    public static void main(String[] args) {
        GunFactory gunFactory=new GunFactory();
        TankFactory tankFactory=new TankFactory();
        Weapon gun = gunFactory.getWeapon();
        Weapon tank = tankFactory.getWeapon();
        gun.attack();
        tank.attack();
    }
}
